fromBytes

(alias) pure static function fromBytes(bytes: byte_array): gtv

Deprecated

Use 'from_bytes' instead

Decode a GTV from a byte array.

Inverse of gtv.to_bytes().

Alias

Alias target

Return

the decoded GTV

Since

0.9.0

Parameters

bytes

the byte array to decode

Throws

exception

if the byte array does not encode a well-formed GTV; i.e. if a GTV cannot be decoded